namespace SanalMagaza.UI.Controllers
{
    using System.Web.Mvc;
    using SanalMagaza.Model;

    public class BaseController : Controller
    {
        protected Repository Repository;
        public BaseController()
        {
            Repository = new Repository();
        }

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
            ViewBag.CategoryList = Repository.GetAllCategory();
        }
    }
}